<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/20 0020
 * Time: 23:09
 */
return [
    'http' => [
        'host' => '0.0.0.0',                //服务监听ip
        'port' => 9503,                      //监听端口
        'tcpable' => 1,
        'swoole_setting' => [               //swoole配置
            'worker_num' => 1,              //worker进程数量
            'daemonize' => 0,               //是否开启守护进程
            'pack_max_length' => 1024 * 1024 * 2,
            // 'upload_tmp_dir'=>__DIR__."/upload",
            // 'document_root' =>__DIR__,
            // 'enable_static_handler' => true
        ]
    ],
    'tcp' => [
        'host' => '0.0.0.0',                //服务监听ip
        'port' => 8099,                      //监听端口
        'swoole_setting' => [               //swoole配置
            'worker_num' => 1,              //worker进程数量
            'pack_max_length' => 1024 * 1024 * 2,
        ]
    ],
    'ws' => [
        //是否开启http解析
        'host' => '0.0.0.0',                //服务监听ip
        'port' => 9503,                      //监听端口
        'tcpable' => 1,                        //是否开启tcp解析
        'enable_http' => true,                 //是否开启http解析
        'swoole_setting' => [               //swoole配置
            'worker_num' => 1,              //worker进程数量
            'daemonize' => 0,               //是否开启守护进程
            'pack_max_length' => 1024 * 1024 * 2,
        ]
   ]
];